<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    function Parent1() {
      this.name = 'parent1';
      this.play = [1, 2, 3];
    }
    function Child1() {
      this.type = 'child2';
    }
    Child1.prototype = new Parent1();
    console.log(new Child1());
  </script>
</html>
